-- Copyright 2002-2008.  Adobe Systems, Incorporated.  All rights reserved.
-- Make a new text layer in a new document.
-- Set the contents of the text item in the new text layer.
-- Set the point size of the text, the color
-- Set the warp style and warp bend of the text item.

tell application "Adobe Photoshop CS4"
	activate
	make new document
	set artLayerRef to make new art layer in current document with properties 
		{kind:text layer, name:"My new Text layer"}
	set textItemRef to text object of artLayerRef
	set contents of contents of textItemRef to "Hello"
	set size of textItemRef to 36 as points
	set stroke color of textItemRef to {class:CMYK color, cyan:20, magenta:50, yellow:30, black:0}
	set warp style of textItemRef to flag
	set warp bend of textItemRef to 25.5
	
end tell
